<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>共享记账</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="共享记账, 集体记账, 合租, 聚餐, 分账" />
<meta name="description" content="工具性网站，用来帮助管理合租、聚餐等集体费用。" />
<link href="/static/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header-wrapper">
	<div id="header">
		<a href="/?noredirect"><img alt="共享记账" src="/static/images/banner.png" /></a>
		<div id="user-nav">
			{% if request.user.is_authenticated %}
			欢迎您，<a href="/accounts/edit/">{{ request.user.name }}</a>
			<span class="sep">|</span>
			<a href="/sa/">帐户列表</a>
			<span class="sep">|</span>
			<a href="/accounts/logout/">退出</a>
			{% else %}
			<a href="/accounts/register/">注册</a>
			&nbsp; <span class="sep">|</span> &nbsp;
			<a href="/accounts/login/">登陆</a>
			{% endif %}
		</div>
		<div class="clear"></div>
    </div>
</div>
<div id="page">

	<div id="content">
	{% if messages %}
	<ul class="messages">
		{% for message in messages %}
		<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
		{% endfor %}
	</ul>
	{% endif %}

	{% block content %}
	{% endblock %}

	<div id="footer">
		<div class="clr"></div>
	</div>
	</div>
</div>

<script src="/static/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
{% block embedded_javascript %}{% endblock %}
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22174072-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
</body>
</html>
